package com.example.drools_springboot_demo.common;

import java.math.BigDecimal;

/**
 * Created by DongChenchen on 2018/4/28 0028
 */
public class Const {
    //BigDecimal除法,小数点保留位数
    public static final Integer BDM_SCALE=6;
    //0 吃单判定  1 执行方向 2 涨跌判定 3 回购
    public static final String MSG_TYPE_NAME_ORDER="吃单判定";
    public static final String MSG_TYPE_NAME_DIRECTION="执行方向";
    public static final String MSG_TYPE_NAME_UPDOWN="涨跌判定";
    public static final String MSG_TYPE_NAME_BUYBACK="回购";
    public static final Integer MSG_TYPE_ORDER=0;
    public static final Integer MSG_TYPE_DIRECTION=1;
    public static final Integer MSG_TYPE_UPDOWN=2;
    public static final Integer MSG_TYPE_BUYBACK=3;
    //量化  交易阻塞判定阀值
    public static final Double TRANSACTION_BACKFLOW_ONE=0.2;
    public static final Double TRANSACTION_BACKFLOW_TWO=1.8;
    //量化  寻找最近交易最多的平台(最多的可能不成反比,所以取前3个交易所)
    public static final Integer MAX_EXCHANGES=4;
    //量化  回流 预期收益率阀值
    public static final BigDecimal EXPECT_PROFIT=BigDecimal.ZERO.subtract(BigDecimal.valueOf(0.01));

}
